Conversation
|
This doesn't work as vectors that are 4 wide are restricted behind a FFlag because they increase the size of a TValue so they can fully fit on the stack. Although I do think there is value in making vectors more generalized, as I've commonly ran into situations where I'm using vectors that don't necessarily have an |
Potentially for larger vectors a reference/pointer could be used similarly to how buffers are. |
|
One concern I can think of with the "auto-switch between 3/4 size and 'large' size" approach is how it would interact with NCG. |
This RFC proposes using vectors with more than 3 or 4 components instead of tables or multiple vectors.
Alongside this comes a
function vector.dim(v: vector): numberfunction to query how many components a vector has.